package com.example.design.builder;

import com.example.design.utils.XMLUtils;

public class ModelTest {
	
	public static void main(String[] args) {
		ModelBuilder modelBuilder = (ModelBuilder)XMLUtils.getBean("config.xml","className");
		ModelController modelController = new ModelController();
		Model model = modelController.construct(modelBuilder);
		System.out.println(model.getTitle());
		System.out.println(model.getMenu());
		System.out.println(model.getList());
		System.out.println(model.getWindow());
		System.out.println(model.getControllerbar());
		
	}
}
